import service from '../../utils/request';
import mod from '../mod'

const chart = {
    getCharts(data) {
        return service.post(mod.chart, data)
            .then(data => {
                return Promise.resolve(data)
            })
            .catch(err => {
                return Promise.reject(err)
            })
    }
}

export default chart;